#include "../include/paddle.h"

Paddle::Paddle()
{
    //ctor
}

Paddle::~Paddle()
{
    //dtor
}

SDL_Rect Paddle::GetImageBounds() const
{
    SDL_Rect bounds;
    bounds.w = 20;
    bounds.h = 20;

    return bounds;
}

SDL_Rect Paddle::GetImagePosition() const
{
    SDL_Rect position;
    position.x = x;
    position.y = y;
    return position;
}


void Paddle::Draw(SDL_Surface*screen)const
{
  boxRGBA (screen, x, y, x+30, y+60, 0,0, 255, 255);
}


void Paddle::UpdatePosition(float newX, float newY)
{
    x = newX;
    y = newY;
}
